package com.wyp168.jvm001.returnaddress;

import java.io.FileReader;
import java.io.IOException;

/**
 * @ClassName ExceptionTableDemo001
 * @Description TODO
 * @Author wyp168
 * @Date 2022/8/8 16:50
 */
public class ExceptionTableDemo001 {

    public static void main(String[] args) {
        ExceptionTableDemo001 instance = new ExceptionTableDemo001();
        instance.method02();
    }

    public void method02() {
        try {
            method01();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    public void method01() throws IOException {
        FileReader fi = new FileReader("/Users/wangyuanpeng/t_brand.sql");
        char[] cBuffer = new char[1024];
        int len = 0;
        while ((len = fi.read(cBuffer)) != -1) {
            String str = new String(cBuffer,0,len);
            System.out.println(str);
        }
    }
}
